package com.yl.androidutilscenter.base.activity

import android.view.View
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import com.yl.androidutilscenter.base.BaseViewModel

/**
 * @author
 * @description: BaseVmDbActivity,包含viewmodel 、 dataBinding
 * @date :2024/3/8
 * @version 1.0.0
 */
abstract class BaseVmDbActivity<VM : BaseViewModel, VB : ViewDataBinding> : BaseVmActivity<VM>() {
    lateinit var mDataBinding: VB
    override fun initDataBind(): View? {
        mDataBinding = DataBindingUtil.setContentView(this, layoutId())
        return mDataBinding.root
    }

}